package pets;

public abstract class Pet
{
	protected String name;
	protected boolean alive;
	protected int age;
	
	public Pet(int age, String name, boolean alive)
	{
		//Constructs the Pet class
		this.name = name;
		this.age = age;
		this.alive = alive;
	}
	
	
	public String getName()
	{
		//returns the pets name
		return name;
	}
	
	
	public void die()
	{
		//Kills the pet
		System.out.println("Your pet has died a horrible painful death.");
		alive = false;
	}
	
	public void eat()
	{
		//Feeds the pet
		System.out.println("Om nom nom.");
	}
	
	public void speak()
	{
		//The pet speaks
		System.out.println("*Insert appropriate animal noises here*");
	}

	public abstract void talk();
}
